package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.ciaojian.core.enums.business.MemberOrderStatusEnum;
import com.ciaojian.core.enums.business.MemberOrderTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author Atlakyn
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("d_member_order")
@Accessors(chain = true)
public class MemberOrder extends Model<MemberOrder> {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String orderNo;

    private Integer userId;

    @ApiModelProperty("绑定发型师所属的店面")
    private Integer storeId;

    private Integer memberId;

    @ApiModelProperty("订单状态 0未支付 1已支付 2取消支付")
    private MemberOrderStatusEnum status;

    /**
     * 类型: 0非续费订单-1续费订单
     */
    private MemberOrderTypeEnum type;

    private Long money;

    private String createTime;

    /**
     * 券类型 id 字符串
     */
    private String coupon;

    private String updateTime;

    /**
     * 邀请发型师 id
     */
    private Integer inviteId;
}
